package com.zlz.server.constant;

/**
 * @author: zlz
 * @date: 2021/3/16 22:44
 * @description: 邮件发送相关常量
 * @since: JDK1.8
 */
public class MailConstant {
    /**
     * 消息投递中
     */
    public static final Integer DELIVERING = 0;

    /**
     * 消息投递成功
     */
    public static final Integer DELIVER_SUCCESS = 1;

    /**
     * 消息投递失败
     */
    public static final Integer DELIVER_FAILED = 2;

    /**
     * 最大重试次数
     */
    public static final Integer MAX_TRY_COUNT = 3;

    /**
     * 消息超时时间(单位分钟)
     */
    public static final Integer MSG_TIMEOUT = 1;

    /**
     * 队列
     */
    public static final String MAIL_QUEUE_NAME = "mail.queue";

    /**
     * 交换机
     */
    public static final String MAIL_EXCHANGE_NAME = "mail.exchange";

    /**
     * 路由健
     */
    public static final String MAIL_ROUTING_KEY_NAME = "mail.routing.key";
}
